package com.dalianpai.gulimall.order.dao;

import com.dalianpai.gulimall.order.entity.OrderEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * 订单
 * 
 * @author dalianpai
 * @email dalianpai@163.com
 * @date 2020-05-25 21:50:52
 */
@Mapper
public interface OrderDao extends BaseMapper<OrderEntity> {

    @Update("UPDATE oms_order set status = #{code} where order_sn = #{outTradeNo}")
    void updateOrderStatus(@Param("outTradeNo")String outTradeNo, @Param("code") Integer code);





















}
